﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="DanhSachGioHang.aspx.cs" Inherits="WebApplication1.DanhSachGioHang" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainHolder" runat="server">
    <div class="Dock">
        <div style="padding: 2px 0px 2px 10px; font-weight: bold; color: #FFFFFF; float: left; text-align: left" >
            Danh sách giỏ hàng</div>                
    </div>
    <div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
        <asp:DataList ID="dl_dsgiohang" runat="server" CellPadding="10" Font-Bold="False" 
            Font-Italic="False" Font-Overline="False" Font-Strikeout="False" 
            Font-Underline="False" HorizontalAlign="Left" 
            Width="480px" RepeatLayout="Flow" GridLines="Horizontal" 
                        onitemcommand="dl_dsgiohang_ItemCommand">
            
            <HeaderTemplate>
                <table class="style1">
                    <tr>
                        <td style="width: 205px; color: #FF0000;">
                            Ngày đặt hàng</td>
                        <td style="color: #FF0000;">
                            Tình trạng</td>
                    </tr>
                </table>
            </HeaderTemplate>
            
            <ItemTemplate>
                <table class="style1">
                    <tr>
                        <td style="width: 159px">
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("ngaydh") %>'></asp:Label>
                        </td>
                        <td style="width: 147px" align="center">
                            <asp:Label ID="Label2" runat="server" Text='<%# Eval("trangthai") %>'></asp:Label>
                        </td>
                        <td style="width: 95px">
                            <asp:LinkButton ID="LinkButton2" runat="server" 
                                CommandArgument='<%# Eval("madhol") %>' Text="Xem chi tiết" 
                                CommandName="Xem"></asp:LinkButton>
                        </td>
                        <td align="center">
                            <asp:ImageButton ID="ImageButton2" runat="server" 
                                ImageUrl="~/Image/Close-2-icon.png" onclientclick="return confirm('Bạn có chắc chắn muốn xóa ?')" CommandArgument='<%# Eval("madhol") %>' 
                                CommandName="xoa" />
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
            
        </asp:DataList>
                    <br />
                    <br />
                    <asp:Panel ID="Panel3" runat="server">
                        <br />
                        Trang:
                    </asp:Panel>
                    <br />
        </ContentTemplate>
            </asp:UpdatePanel>
    </div>
</asp:Content>
